package javaseof10day.day4.pm;

import java.util.Date;
import javax.swing.Spring;

//定义一个people类并申明people类的身高、地址等属性
public class UserAction {
	
	
	public  Users reg(int id,int old, String name, String password, String faceimg, String email) {

		Users users = new Users();

		users.setId(id);
		users.setOld(old);

		users.setName(name);
		users.setPassword(password);
		users.setFaceimg(faceimg);
		users.setEmail(email);
		users.setCreateTime(new Date());
			
		
		
		return users;
		

	}

	public boolean dologin(String name,String password) {
		
		
		if(name=="admin" && password =="admin") {
			
			return true;
			
		}else {
			return false;
		}
		


	}

}
